package com.example.androidlearing2423.kotlin

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.example.androidlearing2423.R
import com.example.androidlearing2423.ui.theme.theme.AndroidLearing2423Theme



class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContent {
            AndroidLearing2423Theme {
                Surface(modifier = Modifier.fillMaxSize(),) {

                }
            }
        }
    }
}


//@Composable
//fun Greeting(name: String, modifier: Modifier = Modifier) {
//    Text(
//        text = "Hello $name!",
//        modifier = modifier
//    )
//}
@Composable
fun BusinessCardScreen(){
    Column (
        modifier = Modifier
            .fillMaxSize()
            .padding(16.dp),
        verticalArrangement = Arrangement.Center,
        horizontalAlignment = Alignment.CenterHorizontally
    )
    {
        Image(painter = painterResource(id = R.drawable.android_logo),
            contentDescription = "Android Developer Logo",
            modifier = Modifier.size(120.dp).clip(CircleShape).padding(bottom = 24.dp))
        Column (
            horizontalAlignment =  Alignment.CenterHorizontally,
            modifier = Modifier
                .padding(bottom = 32.dp))
            {
                Text(text = "Jennifer Doe",
                    fontSize = 28.sp,
                    fontWeight = FontWeight.Bold

                    )
                Text(text = "Android Developer Extraordinaire",
                    fontSize = 16.sp,
                    color= Color(0xff90ee90),
                    )

            }
//        Column  (horizontalAlignment = Alignment.CenterHorizontally){
//            Contactltem(icon = Icons.Outlined.Phone,text = "+1(123)444 555 666")
//            ContactItem(icon = Icons.Outlined.SocialDistance, text = "@AndroidDev")
//            ContactItem(icon = Icons.Outlined.Mail, text = "jen.doe@android.com")
//       }

    }
}
//@Composable
//fun ContactItem(icon: androidx.compose.material3.Icon, text: String)
//verticalAlignment = Alignment.CenterVertically,
//modifier = Modifier.padding(vertical = 4.dp)imageVector = icon,